package com.liu.domain;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * Created by liu on 17-10-12.
 */
@Entity
public class text {
    @Id
    private int id;                 //公告编号
    private String context;       //内容
    @Temporal(TemporalType.DATE)
    private Date time = new Date();      //公告入学时间
    private String name;
    private  String title;           //标题

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public String toString() {
        return "text{" +
                "id=" + id +
                ", context='" + context + '\'' +
                ", time=" + time +
                ", name='" + name + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}
